package com.lmt_14;

import java.io.Serializable;

public class User implements Serializable {
    private String name;
    private transient int age;
    private String info;
    private double height;

    public User(String name, int age, String info, double height) {
        this.name = name;
        this.age = age;
        this.info = info;
        this.height = height;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public String getInfo() {
        return info;
    }

    public double getHeight() {
        return height;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    public static final long  serialVersionUID = 2816637862759149761L;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", info='" + info + '\'' +
                ", height=" + height +
                '}';
    }
}
